package stock_dao;

import java.sql.SQLException;
import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.ibatis.sqlmap.client.SqlMapExecutor;

import stock_vo.ItemVO;

public class ItemDaoImpl extends SqlMapClientDaoSupport implements ItemDao{

	@Override
	public void insertItem(ItemVO vo) throws SQLException {
		this.getSqlMapClient().insert("item.insertItem",vo);		
	}
	@Override
	public List selectItem() throws SQLException {
		return this.getSqlMapClient().queryForList("item.selectItem");		
	}
	@Override
	public void deleteItem(String item_code) throws SQLException {
		this.getSqlMapClient().delete("item.deleteItem", item_code);
	}
}